import { history, Link } from "umi";


const FormRegister = () => {

}

export default (props: any) => {
    return (
        <div>
            <h1>User  </h1>
            {/* <button onClick={() => { history.push('/user/user1') }}>user1</button>
            <button onClick={() => { history.push('/user/user2') }}>user2</button> */}
            <button><Link to='/user/user1'>user1</Link></button>
            <button><Link to='/user/user2'>user2</Link></button>
            <h1 >{props.children}</h1>

        </div>
    );
}

export {
    FormRegister
}